/**
 * Created with IntelliJ IDEA
 * Description:
 * User:恋恋
 * Date:2022-08-28
 * Time:8:45
 */
public class Yean {
    public static void main(String[] args) {
        for (int i=1000;i<=2000;i++)
        {
            if(i%100!=0)
            {
                if(i%4==0)
                {
                    System.out.print(i+"\t");
                }
            }else{
                if(i%400==0)
                {
                    System.out.printf(i+"\t");
                }
            }
        }
    }
}
